﻿@model N03_11HCA_HTTTHD.Models.ChaoBan_ChiTiet
           
@{
    ViewBag.Title = "Cần bán chi tiết thiết bị";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section JavaScriptCSSImport{
    <link href="@Url.Content("~/Content/mycontent/list_counter.css")" rel="stylesheet" type="text/css"/>
}

@section MenuImport{
    <ul class="nav">
        <li><a href="/ChaoBan" class="current">Chào bán</a></li>
        <li><a href="/TimMua">Tìm mua</a></li>
        <li><a href="/DoanhNghiep">Doanh nghiệp</a></li>
        <li><a href="/TinTuc">Tin tức</a></li>
    </ul>
}

@section MenuTraiImport{
   @Html.Action("MenuTraiCanBan", "Home");
    @Html.Action("MenuTraiTimMua", "Home");
}


<table class="rong100p">
    <tbody>
        <tr>
            <td colspan="2">
                <h2>THÔNG TIN CẦN BÁN</h2>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <h3>THÔNG TIN CHUNG</h3>
            </td>
        </tr>
        <tr>
            <td width="40%">
                <span >Tên tiếng Việt:</span>
            </td>
            <td>
                <span>@Model.ttCanBan.TenViet</span>
            </td>
        </tr>
        <tr>
            <td>
                <span>Tên tiếng Anh:</span>
            </td>
            <td>
                <span>@Model.ttCanBan.TenAnh</span>
            </td>
        </tr>
         <tr>
            <td>
                <span>Loại sản phẩm: </span>
            </td>
            <td>
            @{
                String loaiCanBan = "";
                if (@Model.ttCanBan.LoaiCanBan == 1)
                {
                    loaiCanBan="Thiết bị/ Công nghệ";
                }
                else if (@Model.ttCanBan.LoaiCanBan == 2)
                {
                    loaiCanBan = "Dịch vụ";
                }
                else if (@Model.ttCanBan.LoaiCanBan == 3)
                {
                    loaiCanBan = "Công nghệ phần mềm";
                }
                
            }
                <span>@loaiCanBan</span>
            </td>
        </tr>
        <tr>
            <td>
                <span>Xuất xứ:</span>
            </td>
            <td>
                <span>@Model.ttCanBan.XuatXu</span>
            </td>
        </tr>
        <tr>
            <td>
                <span>Ưu điểm:</span>
            </td>
            <td>
                <span>@Model.ttCanBan.UuDiem</span>
            </td>
        </tr>
        <tr>
            <td>
                <span>Mô tả: </span>
            </td>
            <td>
                <span>@Model.ttCanBan.MoTa</span>
            </td>
        </tr>
        <tr>
            <td>
                <span>Hình ảnh: </span>
            </td>
            <td><img  class="hinhAnhCanBan" src="@Url.Content("~/Content/HinhAnh/" + @Model.ttCanBan.HinhAnhDinhKem)" alt="" /></td>
        </tr>

        @if (@Model.ttThietBi != null)
        {
        <tr>
            <td colspan="2">
                <h3>THÔNG TIN THIẾT BỊ</h3>
            </td>
        </tr>
            <tr>
            <td >
                <span>Công suất/ Năng suất:</span>
            </td>
              <td >
                <span>@Model.ttThietBi.CongSuatNangSuat</span>
            </td>
        </tr>         

       <tr>
            <td>
                <span>Đạt tiêu chuẩn: </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    @for (int i = 0; i < Model.ListTieuChuan.Count; i++)
                    {
                        String id = "idTieuChuan" + @Model.ListTieuChuan[i].ID;
                        <tr>
                            <td>
                           <input type ="checkbox" checked="checked" value="ten" id="@id" disabled="disabled"/> 
                                <label for="@id"><a href="/Home/ChaoBanTieuChuan/@Model.ListTieuChuan[i].ID">@Model.ListTieuChuan[i].Ten</a></label>
                            </td>
                        </tr>
                    }
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <span>Quy mô sử dụng : </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    @for (int i = 0; i < Model.ListMucDoPhatTrien.Count; i++)
                    {
                        String id = "idMucDoPhatTrien" + @Model.ListMucDoPhatTrien[i].ID;
                        <tr>
                            <td>
                              <input type ="checkbox" value="ten" id="@id" checked="checked" disabled="disabled"/> 
                               <label for="@id"> @Model.ListMucDoPhatTrien[i].Ten</label>
                               <label for="@id"><a href="/Home/ChaoBanMucDoPhatTrien/@Model.ListMucDoPhatTrien[i].ID">@Model.ListMucDoPhatTrien[i].Ten</a></label>
                            </td>
                        </tr>
                    }
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <span>Nguồn gốc : </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    @for (int i = 0; i < Model.ListNguonGoc.Count; i++)
                    {
                        String id = "idNguonGoc" + i.ToString();
                        <tr>
                            <td>
                              <input type ="checkbox" value="ten" checked="checked" id="@id" disabled="disabled"/> 
                                 <label for="@id"><a href="/Home/ChaoBanNguonGoc/@Model.ListNguonGoc[i].ID">@Model.ListNguonGoc[i].Ten</a></label>
                            </td>
                        </tr>
                    }
                       
                    </tbody>
                </table>
            </td>
        </tr>
        
                    if (@Model.ttThietBi.NamHoanThien != null)
                    {
        <tr>
            <td >
                <span>Năm hoàn thiện: </span>
            </td>
            <td>
                <span>@Model.ttThietBi.NamHoanThien</span>
            </td>
        </tr>
                    }
        <tr>
            <td >
                <span>Các chỉ tiêu kinh tế kỷ thuật:   </span>
            </td>
            <td>
                <span>@Model.ttThietBi.ChiTieuKinhTeKyThuat</span>
            </td>
        </tr>
        }
         <tr>
            <td colspan="2">
                <h3>YÊU CẦU KỸ THUẬT TRONG VẬN HÀNH VÀ LẮP ĐẶT</h3>
            </td>
        </tr>
         <tr>
            <td colspan="2">
                <h3>PHƯƠNG THỨC CHUYỂN GIAO</h3>
            </td>
        </tr>
        <tr>
            <td>
                <span>Chuyển giao : </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
              
                    <tbody>
                      @for (int i = 0; i < Model.ListChuyenGiao.Count; i++)
                      {
                          String id = "idChuyenGiao" + @Model.ListChuyenGiao[i].ID;
                      <tr>
                            <td>
                              <input type ="checkbox" checked="checked" value="ten" id="@id" disabled="disabled"/> 
                               <label for="@id"><a href="/Home/ChaoBanChuyenGiao/@Model.ListChuyenGiao[i].ID">@Model.ListChuyenGiao[i].Ten</a></label>         
                            </td>
                        </tr>
                      }
                      
                       
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <span>Cung cấp: </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    @for (int i = 0; i < Model.ListCungCap.Count; i++)
                    {
                        String id = "idChuyenGiao" + @Model.ListCungCap[i].ID;
                        <tr>
                            <td>
                            <input type ="checkbox" checked="checked" value="ten" id="@id" disabled="disabled"/> 
                                <label for="@id"><a href="/Home/ChaoBanCungCap/@Model.ListCungCap[i].ID">@Model.ListCungCap[i].Ten</a></label>         
                            </td>
                        </tr>
                    }
                       
                        
                    </tbody>
                </table>
            </td>
        </tr>
         <tr>
            <td colspan="2">
                <h3>THÔNG TIN PHÂN LOẠI</h3>
            </td>
        </tr>
        <tr>
            <td>
                <span>Phân loại: </span>
            </td>
            <td>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                    @for (int i = 0; i < Model.ListPhanLoai.Count; i++)
                    {
                        String id = "idPhanLoai" + @Model.ListPhanLoai[i].ID;
                        <tr>
                            <td>
                             <input type ="checkbox" checked="checked" value="ten" id="@id" disabled="disabled"/> 
                                <label for="@id"><a href="/Home/DanhMucTimMua/@Model.ListPhanLoai[i].ID">@Model.ListPhanLoai[i].TenDanhMuc</a></label>
                            </td>
                        </tr>
                    }  
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <span>Từ khóa: </span>
            </td>
            <td>
                <span>@Model.ttCanBan.TuKhoa</span>
            </td>
        </tr>
         <tr>
            <td colspan="2">
                <span>CÁC THÔNG TIN KHÁC</span>
            </td>
        </tr>
        <tr>
            <td >
                <span>Giá tham khảo :</span>
            </td>
            <td >
                <span></span>
            </td>
        </tr>
        <tr>
        <td >
                <span>Liên hệ</span>
            </td>
            <td >
                <a class="mailTo" href="/Home/LienHe/@Model.ttCanBan.IDNguoiDang"></a>
            </td>
        </tr>
    </tbody>
</table>